package top.chj.day18.genericity.rule;

/**
 * @Auther:小陈的Java
 */
public class Rule2<A> {
    private A a;

    public A getA() {
        return a;
    }

    public void setA(A a) {
        this.a = a;
    }

    public static void main(String[] args) {
        Rule2 rule1 = new Rule2();
        rule1.setA("fghj");
        System.out.println(rule1.getA());
        Rule2<Integer> rule11 = new Rule2();
        rule11.setA(12);
        System.out.println(rule11.getA());
    }
}
